//@author A0084556W
package Main;
public class Item {
	private String _Name = null;
	private double _Price = 0;
	private int _NecessityValue = 0;
	private Date date = new Date();
	private String _Place = null;
	private String _Category = null;
	private String _Payment = null;
	
	
public Item(){
		
	}

	public Item (String n){			//for simple search
		_Name = n;
		date.setDay(0);
		date.setMonth(0);
		date.setYear(0);
	}
	
	public Item(String n, double p, int nec, int day, int month, int year, String place, String cat, String pay){
		_Name = n;
		_Price = p;
		_NecessityValue = nec;
		date = new Date(day, month, year);
		_Place = place;
		_Category = cat;
		_Payment = pay;
	}
	
	public void setPay(String pay){
		_Payment = pay;
	}
	
	public String getPay(){
		return _Payment;
	}
	
	public void setName( String name){
		_Name = name;
	}
	
	public void setPrice(double price){
		_Price = price;
	}
	
	public void setNecessityValue(int necessityValue){
		_NecessityValue = necessityValue;	
	}
	
	public void setPlace(String place){
		_Place = place;
	}
	
	public void setCategory(String category){
		_Category = category;
	}
	
	

	public Date getDate(){
		return date;
	}
	
	
	public String getName(){
		return _Name;
	}
	
	public double getPrice(){
		return _Price;
	}
	
	public int getNecessityValue(){
		return _NecessityValue;
	}
	
	public String getPlace(){
		return _Place;
	}
	
	public String getCategory(){
		return _Category;
	}	
	
	
}
